Skip to content

add flink support FLIP-510#8452

Open
irodriguezclaveria wants to merge 8 commits into
apache:masterfrom
irodriguezclaveria:add_support_to_flip_510
Open

add flink support FLIP-510#8452
irodriguezclaveria wants to merge 8 commits into
apache:masterfrom
irodriguezclaveria:add_support_to_flip_510

Conversation

@irodriguezclaveria

@irodriguezclaveria irodriguezclaveria commented Jul 3, 2026

Copy link
Copy Markdown

Support key-only deletes on primary-key table sink (FLIP-510)

Advertise the FLIP-510 keyOnlyDeletes capability on primary-key table sinks so the Flink planner can drop the upstream ChangelogNormalize node when the source produces deletes by key.

This is especially useful for CDC sources, where the UPDATE_AFTER already carries the full row: dropping ChangelogNormalize removes its state and overhead with no loss of correctness.

Gated behind a new table option sink.key-only-deletes.enabled (default false), so existing plans are unchanged unless explicitly opted in. The API only exists in Flink 2.1+, so the behavior is wired through ChangelogModeUtils in paimon-flink1-common (no-op) and paimon-flink2-common (sets the flag), keeping paimon-flink-common compiling against both Flink 1.x and 2.x.

This PR has been tested in a real environment and drops correctly the ChangelogNormalize.

@irodriguezclaveria irodriguezclaveria marked this pull request as ready for review July 7, 2026 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant